<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required;remote(adv/lists/check?ids=)" placeholder="用于区分，方便管理" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('简单描述')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-desc" data-rule="required" class="form-control" name="row[desc]" placeholder="简单描述，展示部分信息" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-memo" data-rule="required" class="form-control" name="row[memo]" placeholder="备注信息" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Link')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-link" data-rule="remote(adv/lists/check?ids=)" placeholder="自定义短链接" class="form-control " name="row[link]">
        </div>
        <div class="col-xs-12 col-sm-2 col-sm-pull-2 text-right">
            <button type="button" onclick="checkField()" class="btn btn-info">随机生成</button>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Interval')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-interval" data-rule="required" class="form-control" placeholder="等待跳转时间，单位：秒" name="row[interval]" type="number" value="5">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Target')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-target" data-rule="required" class="form-control " placeholder="跳转的目标网址，最好加 http|https" name="row[target]">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pv')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pv" data-rule="required" class="form-control" name="row[pv]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Uv')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-uv" data-rule="required" class="form-control" name="row[uv]" type="number" value="0">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('跳转模板')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-adv_html_id" data-rule="required" data-source="adv/html/index" class="form-control selectpage" name="row[adv_html_id]" type="text" value="1">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
